package com.fyl.oauth2.entity;

import com.fyl.oauth2.domain.Privilege;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author: 黯然
 * @Date: 2025/4/8 15:04
 * @Description:
 */
public class User {
    private String userId;
    private String username;
    private String password;


    private List<Privilege> privileges = new ArrayList<>();

    private List<Integer> roles = new ArrayList<>();


    private String role;

    private String privilege;

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }

    public List<Privilege> getPrivileges() {
        return privileges;
    }

    public void setPrivileges(List<Privilege> privileges) {
        this.privileges = privileges;
    }

    public List<Integer> getRoles() {
        return roles;
    }

    public void setRoles(List<Integer> roles) {
        this.roles = roles;
    }

    public String getPrivilege() {
        return privilege;
    }

    public void setPrivilege(String privilege) {
        this.privilege = privilege;
    }

}
